package ink.onei.production.mapper;

import ink.onei.production.entity.Order;
import ink.onei.production.vo.OrderDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: nekotako
 * @Description: TODO
 * @Date: 26/12/2023 20:56 Tuesday
 */

public interface IOrderMapper {

    Integer insert(Order order);

    Integer insertBatch(List<Order> orderList);

    Integer update(Order order);

    Integer delete(Order order);

    Integer deleteBatch(List<Order> orderList);

    List<OrderDetailVO> getOrderList(OrderDetailVO orderDetail,
                                     @Param("id") Integer id,
                                     @Param("customerName") String customerName,
                                     @Param("goodsName") String goodsName,
                                     @Param("priceUnit") String priceUnit,
                                     @Param("status") String status);
}
